package com.example.bgImageSear.user.service.impl;


import com.example.bgImageSear.user.entity.BgDataEntity;
import com.example.bgImageSear.user.mapper.BgDataMapper;
import com.example.bgImageSear.user.service.IBgDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BgDataServiceImpl implements IBgDataService {

    @Resource
    BgDataMapper bgDataMapper;

    @Override
    public List<BgDataEntity> getBgDataList() {
        return bgDataMapper.getBgDataList();
    }

    @Override
    public List<BgDataEntity> getBgDataByTag(String tag) {
        return bgDataMapper.getBgDataByTag(tag);
    }

    @Override
    public List<BgDataEntity> getImageById(Integer id) {
        return bgDataMapper.getImageById(id);
    }
}
